<!--测试页面-->
<template>
  <div>
    <!-- 整个页面的外层容器 -->
    <el-container class="layout-body">
      <!-- 左侧边栏 -->
      <el-aside class="layout-aside">
        <el-menu
            router
            :default-active="$router.currentRoute.path"
            class="el-menu-vertical-demo"
            background-color="#3f515e"
            text-color="#fff"
            active-text-color="#fff">
          <el-menu-item index="/">
            <i class="el-icon-s-home"></i>
            <span>首页</span>
          </el-menu-item>
          <el-submenu index="1-1">
            <template slot="title">
              <i class="el-icon-s-tools"></i>
              <span>发布项目</span>
            </template>
            <el-menu-item index="/123">
              <i class="el-icon-location"></i>
              <span>添加项目</span>
            </el-menu-item>
          </el-submenu>

        </el-menu>


        <el-menu
            default-active="2"
            class="el-menu-vertical-demo"
            background-color="#3f515e"
            text-color="#fff"
            active-text-color="#fff">
          <el-submenu index="2">
            <template slot="title">
              <i class="el-icon-s-goods"></i>
              <span>查询项目</span>
            </template>
          </el-submenu>
        </el-menu>




      </el-aside>


      <!-- 主体 -->
      <el-main class="layout-main">
        <router-view/>
      </el-main>
    </el-container>

  </div>
</template>

<style>
.layout-body { position: absolute;top: 0px;bottom: 0;left: 0;right: 0PX; }
.layout-aside { background:#3f515e; }
.layout-main {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 500px;
}
.el-menu-item.is-active{
  background: #aaa !important;
}
/*侧边栏图标样式*/
.layout-aside i{
  color: #aa3232 !important;
}
</style>

<script>

</script>